// All configuration item explanations can be find in https://cli.vuejs.org/config/
// const CopyWebpackPlugin = require('copy-webpack-plugin')
// const path = require('path')
module.exports = {
	devServer: {
		host: '0.0.0.0',
		port: 8848
	},
	css: {
		loaderOptions: {
			postcss: {
				plugins: [
					require('autoprefixer')({
						overrideBrowserslist: ['Android >= 4.0', 'iOS >= 7']
					}),
					require('postcss-pxtorem')({
						// 把px单位换算成rem单位
						rootValue: 210, // 换算的基数(设计图750的根字体为32)
						selectorBlackList: ['weui', 'mu'], // 忽略转换正则匹配项
						propList: ['*']
					})
				]
			}
		}
	},
	/**
	 * You will need to set publicPath if you plan to deploy your site under a sub path,
	 * for example GitHub Pages. If you plan to deploy your site to https://foo.github.io/bar/,
	 * then publicPath should be set to "/bar/".
	 * In most cases please use '/' !!!
	 * Detail: https://cli.vuejs.org/config/#publicpath
	 */
	publicPath: './',
	outputDir: 'dist',
	assetsDir: 'static',
	//webpack配置
	configureWebpack: {
		//关闭 webpack 的性能提示
		performance: {
			hints: false
		}
	}
}
